package aad.storyboard.controller;

import java.util.HashMap;

import android.widget.RelativeLayout;

public abstract class SceneTransition implements TransitionCommand{
	
	protected HashMap<RelativeLayout, RelativeLayout> scenes;
	protected int startTime;
	protected long duration;
	protected RelativeLayout current;
	protected RelativeLayout next;
	
	protected boolean started = false;
	
	public SceneTransition(int start, long duration)
	{
		this.startTime=start;
		this.duration=duration;
		scenes=new HashMap<RelativeLayout, RelativeLayout>();
	}
	
	public boolean isStarted() {
		return started;
	}

	public void setStarted(boolean started) {
		this.started = started;
	}

	
	public void addScenes(RelativeLayout current, RelativeLayout next)
	{
		scenes.put(current, next);
	}
	
	public HashMap <RelativeLayout, RelativeLayout> getScenes()
	{
		return scenes;
	}
	public int getTime() {
		return startTime;
	}

	public void setTime(int time) {
		this.startTime = time;
	}
	
	public void setCurrent (RelativeLayout current)
	{
	 this.current=current;
	}
	

}
